<link rel="stylesheet" type="text/css" href="<?php echo $this->webroot . '/theme/default/u22'; ?>/css/stats.css"/>
<script>
    $(document).ready(function(){
       change_menu_class('m_2');
    });
</script>
<div class="content">
    <?php echo get_block('user', 'left');?>
    <div class="info">
        <h3>基本统计信息(只显示前20条)</h3>
        <table style="width:100%;font-size: 12px;text-align: center;" id="visit_details" summary="visit details" >
            <thead>
                <tr>
                    <th>IP</th>
                    <th>手机访问</th>
                    <th>来访时间</th>
                    <th>来路</th>
                    <th>操作系统</th>
                    <th>浏览器</th>
                </tr>
            </thead>
            <tbody>
                <?php if(!empty($rs)):?>
                <?php foreach($rs as $k => $v):?>
                <tr>
                    <td><?php echo $v->getIp();?></td>
                    <td><?php if($v->getIsWap()){ e('是'); }else{ e('否');}?></td>
                    <td><?php e(date("h:i:s",$v->getCreated()))?></td>
                    <td>
                        <?php if($v->getHost()=='直接输入'):?>
                            直接输入
                        <?php else:?>
                        <a title="点击查看最后来路" target="_blank" href="<?php echo $v->getReferer();?>"><?php echo $v->getHost();?></a>
                        <?php endif;?>
                    </td>
                    <td><?php echo getOsName($v->getAgent());?></td>
                    <td><?php echo getIeName($v->getAgent());?></td>
                </tr>
                <?php endforeach;?>
                <?php endif;?>
            </tbody>
        </table>
    </div>
</div>